<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="/res/third/bootstrap3/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="/res/common/js/jquery.1.9.1.min.js" type="text/javascript"></script>
<script src="/res/third/artDialog/jquery.artDialog.js" type="text/javascript"></script>
<script src="/res/third/validate/jquery.validate.js" type="text/javascript"></script>
<script src="/res/third/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/res/third/easyUI/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
	<style>
		.panel-content{overflow: scroll;}
	</style>
<script type="text/javascript">
    function deleteRow(id) {
        art.dialog.confirm( "确认删除这个管理员？", function() {
            $.post('/conference/admin_delete.do', { id: id },
                function (data, textStatus, jqXHR) {
                    art.dialog.tips("删除成功！");
                    refresh();
                });
        });
    }
    $(function () {
        $(".add_admin").click(function() {
            window.open('${redirectUrl!}', "_blank", "height=500,width=700,scrollbars=no,location=no");
        });
    });
</script>
</head>
<body>
	<div class="panel panel-info panel-content">
		<div class="panel-heading">
			<button class="btn btn-info add_admin" target="_blank">
				<span class="glyphicon glyphicon-plus"></span>
				&nbsp;增加会务人员
			</button>
		</div>
		<table class="table table-hover table-bordered table-striped table-condensed">
				<tr>
					<th>#</th>
					<th>微信</th>
					<th>头像</th>
					<th>操作</th>
				</tr>
			[#list pagination.list as item ]
			<tr>
				<td align="center">${pagination.pageSize * (pagination.pageNo-1)+item_index+1}</td>
				<td align="center">${item.nick!}</td>
				<td align="center"><img src="${item.avatar!}" width="40px"/></td>
				<td align="center">
					<button type="button"  onclick="deleteRow('${item.id}')"  class="btn btn-default btn-xs btn-danger">删除</button>
				</td>
			</tr>
			[/#list]
		</table>
		<div class="panel-footer">[@fenye p = pagination form = 'infoForm' /]</div>
	</div>
</body>

</html>
